package com.sluggard.security.manage.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sluggard.security.manage.model.entity.MenuEntity;
import com.sluggard.security.manage.model.res.MenuInfoRes;
import com.sluggard.security.manage.model.res.MenuRes;

import java.util.List;

/**
 * <p>
 * 菜单管理 服务类
 * </p>
 *
 * @author lizheng
 * @since 2024-04-28
 */
public interface IMenuService extends IService<MenuEntity> {

    List<MenuEntity> tree(QueryWrapper<MenuEntity> chainWrapper);

    MenuInfoRes loadMenuInfo(Long id);

    List<MenuRes> tree();

    void onDelete(List<Long> ids);
}
